#pragma once
#include "DisplayItem.h"
#include "DisplayContext.h"
class RectangleDisplayItem:public DisplayItem
{
public:
	RectangleDisplayItem();
	~RectangleDisplayItem();
public:
	float X;
	float Y;
	float Width;
	float Height;
	UINT32 BorderColor;
	UINT32 FillColor;
	float BorderThickness;

public:
	virtual void Render(DisplayContext &dislpayEngine) override;
	virtual void Create(DisplayContext &dislpayEngine) override;

private:
	Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> m_borderBrush;
	Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> m_fillBrush;
};

